#include"test.h"
void test()
{
	int n;
	int x;
	SListNode* pList = NULL;

	SListPushBack(&pList, 1);
	SListPushBack(&pList, 2);
	SListPushBack(&pList, 3);
	SListPushBack(&pList, 4);

	SListPrint(pList);//调用

	SListPopBack(&pList);//尾删一次
	SListPopBack(&pList);//尾删一次

	SListPrint(pList);//调用打印

	SListPushFront(&pList, 1);
	SListPushFront(&pList, 2);
	SListPushFront(&pList, 3);
	SListPushFront(&pList, 4);

	SListPrint(pList);//调用打印

	SListPopFront(&pList);
	SListPopFront(&pList);
	SListPopFront(&pList);

	SListPrint(pList);//调用打印
	
	printf("请输入要查的位置：\n");
	scanf_s("%d", &n);
	SListFindAndModify(&pList, n);
	
	SListPrint(pList);//调用打印

	printf("%d",SListFind(pList, 5));

}

int main()
{
	test();

	return 0;
}























